package com.tech.algorithm.learning.chapter2;

/**
 * @Description:
 * @Author: zl
 * @Date: 2019/8/1 11:14
 */
public class Integer extends Number implements Comparable<Integer> {
    private int value;

    public boolean equals(Object obj)             //覆盖Object类的方法
    {
        if (obj instanceof Integer)
            return value == ((Integer) obj).intValue();
        //比较两个Integer对象的值
        return false;
    }

    @Override
    public int compareTo(Integer o) {
        return 0;
    }

    @Override
    public int intValue() {
        return 0;
    }

    @Override
    public long longValue() {
        return 0;
    }

    @Override
    public float floatValue() {
        return 0;
    }

    @Override
    public double doubleValue() {
        return 0;
    }
}
